package com.zczc.tagmanagement.web.controller;

import com.zczc.tagmanagement.service.TagService;
import com.zczc.tagmanagement.service.TagSortsService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Author:Mark
 * @Description:
 * @Date: Created on 15:09 2019-1-7
 * @Modify by:
 */
public abstract class BaseController {

  protected <T> T convert(T t){
    return t==null||"".equals(t) || "undefined".equals(t)? null: t;
  }

  @Autowired
  protected TagService tagService;

  @Autowired
  protected TagSortsService tagSortsService;

}
